tools/xen-foreign: Update the size for vcpu_guest_{core_regs, context}
authorJulien Grall <jgrall@amazon.com>
Tue, 6 Jul 2021 13:20:00 +0000 (14:20 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 7 Jul 2021 12:07:46 +0000 (13:07 +0100)
commitcc83cae4de8116c7a8c9c9510d6b117745f42ff5
tree2fd37106a8fb913ef96a7302d4bbfe65d06eec86
parentb8d27e5b3391f4f90744f6ce75c02bd2661f7788
tools/xen-foreign: Update the size for vcpu_guest_{core_regs, context}

Commit 918b8842a852 ("arm64: Change type of hsr, cpsr, spsr_el1 to
uint64_t") updated the size of the structure vcpu_guest_core_regs and
indirectly vcpu_guest_context.

On Arm, the two structures are only accessible to the tools and the
hypervisor (and therefore stable). However, they are still checked
by the scripts in tools/include/xen-foreign are not able to understand
that.

Ideally we should rework the scripts so we don't have to update
the size for non-stable structure. But I don't have limited time
to spend on the issue. So chose the simple solution and update
the size accordingly.

Note that we need to keep vcpu_guest_core_regs around because
the structure is used by vcpu_guest_context and therefore the
scripts expects the generated header to contain it.

Fixes: 918b8842a852 ("arm64: Change type of hsr, cpsr, spsr_el1 to uint64_t")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Michal Orzel <michal.orzel@arm.com>
Tested-by: Michal Orzel <michal.orzel@arm.com>
tools/include/xen-foreign/reference.size